/*
 * @Date: 2022-12-21 12:52:06
 * @LastEditTime: 2023-03-04 15:22:33
 * @FilePath: /hash-guess-game/src/hooks/init.ts
 * 介绍:项目初始化
 */
import type { ConfigProviderThemeVars } from "vant";
import { setDialogDefaultOptions } from "vant";
import { Locale } from "vant";

function ressetUnit() {
  document.documentElement.style.fontSize = `${innerWidth / 750}px`;
}
ressetUnit();
/**vant全局配置 */
export const vantThemeVars: ConfigProviderThemeVars = {};
/**修改Diallog默认配置 */
setDialogDefaultOptions({
  teleport: "body",
  className: "bevel",
  showCancelButton: true,
});
Locale.add({
  "zh-TW": {
    confirm: "確認",
    cancel: "取消",
  },
});
